#pragma once

#ifdef _WIN32_WCE
#error "CDHtmlDialog is not supported for Windows CE."
#endif 

// FullScreenTranparentShow dialog

class FullScreenTranparentShow : public CDHtmlDialog
{
	DECLARE_DYNAMIC(FullScreenTranparentShow)

public:
	FullScreenTranparentShow(CWnd* pParent = NULL);   // standard constructor
	virtual ~FullScreenTranparentShow();
	virtual BOOL DestroyWindow();



// Dialog Data
	enum { IDD = IDD_FULLSCREENTRANPARENTSHOW, IDH = IDR_HTML_FULLSCREENTRANPARENTSHOW };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL OnInitDialog();
	afx_msg void OnShowWindow(BOOL bShow, UINT nStatus);

	DECLARE_MESSAGE_MAP()
	

public:
	CButton		m_btnExit;
	CButton		m_btnPause;
	CButton		m_btnPlay;
	CProgressCtrl m_progressBar;
	CWnd *desk;
	CRect re;
	POINT currentPoint;
	POINT previousPoint;
	BOOL m_bPlaying, m_bPause, m_bExit;
	BOOL m_bIsDestroy;
	

public:
	virtual void InitializeFullScreenTransparentControl();
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnClickedExit();
	afx_msg void OnClickedPause();
	afx_msg void OnClickedPlay();
	afx_msg void OnTimer(UINT_PTR nIDEvent);

	bool SetText(BSTR caption, bool isBold);
	virtual const DHtmlEventMapEntry* GetDHtmlEventMap();
	void setProgressPos(LONGLONG cur, LONGLONG m_length);
	void EnableControlInFS(bool flag);
	afx_msg void OnNMReleasedcaptureProgressbar(NMHDR *pNMHDR, LRESULT *pResult);
};
